package com.wondertek.poms.service.vo;

import com.wondertek.poms.common.utils.validate.GroupType;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import javax.persistence.Column;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import javax.validation.groups.Default;

/**
 * @author:W5349
 * @date:2021/1/21
 */
@Data
public class BcInfoVo {

    private Long id;

    @Range(message = "播控方id仅支持6位数字",min = 100000, max = 999999 , groups = {Default.class, GroupType.Update.class})
    private Long bcId;        //播控方ID

    @NotBlank(message = "播控方名称不能为空", groups = {Default.class})
    @Length(message = "播控方名称长度不能超过30个字节", max=30, groups = {Default.class, GroupType.Update.class})
    private String name;      //播控方名称

    @Pattern(message = "播控方手机号仅支持11位数字", regexp = "[0-9]{11}", groups = {Default.class, GroupType.Update.class})
    private String mobile;    //播控方手机号

    private String userType;   //用户类型

    private Long userId;    //用户id

    private String userName;  //用户名

    private String firstClassify;  //一级分类

    private String copyRightCpId;   //版权归属CP

    private String recommendation;  //推荐标签

}
